package com.neusoft.demo.comment;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class ActivityMQQueueConsumer {

    @JmsListener(destination = "myQueue",containerFactory = "jmsListenerContainerQueue")
    public void receiveQueue(String msg){
        System.out.println("myQueue接收到消息："+msg);
    }
}
